package nc.ui.so.syncest.action;

import nc.ui.pubapp.uif2app.model.BillManageModel;
import nc.vo.so.syncest.AggEasSyncestVO;

public class SyncestListRefreshAction extends nc.ui.pubapp.uif2app.query2.action.DefaultRefreshAction{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@Override
	protected boolean isActionEnable() {
		
		Object[] objs = ((BillManageModel)getModel()).getSelectedOperaDatas();
		if(objs == null || objs.length == 0) return false;
		
		for(Object obj : objs) {
			AggEasSyncestVO bill = (AggEasSyncestVO) obj;
			if(bill.getPrimaryKey() == null) return false;
		}
		
		return super.isActionEnable();
	}

}
